import request from '@/utils/request'

// 查询开奖记录列表
export function listAgentPrizeRecord(query) {
  return request({
    url: '/system/agentPrizeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询开奖记录详细
export function getAgentPrizeRecord(recordId) {
  return request({
    url: '/system/agentPrizeRecord/' + recordId,
    method: 'get'
  })
}

// 新增开奖记录
export function addAgentPrizeRecord(data) {
  return request({
    url: '/system/agentPrizeRecord',
    method: 'post',
    data: data
  })
}

// 修改开奖记录
export function updateAgentPrizeRecord(data) {
  return request({
    url: '/system/agentPrizeRecord',
    method: 'put',
    data: data
  })
}

// 删除开奖记录
export function delAgentPrizeRecord(recordId) {
  return request({
    url: '/system/agentPrizeRecord/' + recordId,
    method: 'delete'
  })
}

// 导出开奖记录
export function exportAgentPrizeRecord(query) {
  return request({
    url: '/system/agentPrizeRecord/export',
    method: 'get',
    params: query
  })
}